/*
 * @Description: 单位导航包裹组件
 * @Author: Rfan
 * @Date: 2022-02-10 13:40:29
 * @LastEditTime: 2022-04-20 15:12:30
 */

import { useCallback } from 'react';
import { useEstrayRecordContext } from '../contexts/EstrayRecordContext';
import UFANav from '@/components/UFANav';

const NavSidebar = () => {
  const { fetchATLevel } = useEstrayRecordContext();

  const handleChange = ({ atId, fond }: any) => {
    console.log('change', atId, fond);
    fetchATLevel(atId);
  };

  return (
    <>
      <UFANav onChange={useCallback(handleChange, [])} />
    </>
  );
};

export default NavSidebar;
